package com.agmte.api.app.entity;

import com.agmte.api.common.crud.annotation.FieldAnno;
import com.agmte.api.common.crud.annotation.FieldId;
import com.agmte.api.common.crud.annotation.TableAnno;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@TableAnno(value = "api_group", describe = "分组")
public class ApiGroup {
    @FieldId
    private Long id;

    @FieldAnno(value = "name", desc = "组名")
    @NotNull(message = "分组名称不能为空")
    private String name;
}
